{include file='public/head'}

<div class="x-body layui-anim-scaleSpring">
    <fieldset class="layui-elem-field">
        <legend>数据统计</legend>
        <div class="layui-field-box">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-body">
                        <div class="layui-carousel x-admin-carousel x-admin-backlog" lay-anim="" lay-indicator="inside"
                             lay-arrow="none" style="width: 100%; height: 90px;">
                            <div carousel-item="">
                                <ul class="layui-row layui-col-space10 layui-this">
                                    <li class="layui-col-xs3">
                                        <a href="javascript:;" class="x-admin-backlog-body">
                                            <h3>订单数</h3>
                                            <p><cite>{$totalOrder|default=0}</cite></p>
                                        </a>
                                    </li>
                                    <li class="layui-col-xs3">
                                        <a href="javascript:;" class="x-admin-backlog-body">
                                            <h3>运单数</h3>
                                            <p><cite>{$totalWaybill|default=0}</cite></p>
                                        </a>
                                    </li>
                                    <li class="layui-col-xs3">
                                        <a href="javascript:;" class="x-admin-backlog-body">
                                            <h3>采购数</h3>
                                            <p><cite>{$totalPurchase|default=0}</cite></p>
                                        </a>
                                    </li>
                                    <li class="layui-col-xs3">
                                        <a href="javascript:;" class="x-admin-backlog-body">
                                            <h3>商品数</h3>
                                            <p><cite>{$totalGood|default=0}</cite></p>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </fieldset>


    <fieldset class="layui-elem-field">
        <legend>
            信息统计
        </legend>
        <div class="layui-field-box">
            <table class="layui-table" lay-even="">
                <thead>
                <tr>
                    <th>统计</th>
                    <th>订单</th>
                    <th>运单</th>
                    <th>采购</th>
                    <th>商品</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>总数</td>
                    <td>{$totalOrder|default=0}</td>
                    <td>{$totalWaybill|default=0}</td>
                    <td>{$totalPurchase|default=0}</td>
                    <td>{$totalGood|default=0}</td>
                </tr>
                <tr>
                    <td>今日</td>
                    <td>{$todayOrder|default=0}</td>
                    <td>{$todayWaybill|default=0}</td>
                    <td>{$todayPurchase|default=0}</td>
                    <td>{$todayGood|default=0}</td>
                </tr>
                <tr>
                    <td>昨日</td>
                    <td>{$yesterdayOrder|default=0}</td>
                    <td>{$yesterdayWaybill|default=0}</td>
                    <td>{$yesterdayPurchase|default=0}</td>
                    <td>{$yesterdayGood|default=0}</td>
                </tr>
                </tbody>
            </table>
        </div>
    </fieldset>

    <fieldset class="layui-elem-field">
        <legend>
            通知公告
        </legend>
        <div class="layui-field-box">
            <table class="layui-table" lay-even="">
                <tbody>
                {if count($notice)>0}
                {volist name="notice" id="vo"}
                <tr>
                    <td style="width: 30px;text-align: center">{$i}</td>
                    <td>
                        <a style="color: #1E9FFF" href="javascript:void(0);" onclick="x_admin_show('详情','{:url(\'admin/notice/info\')}?id={$vo.id}')">
                            <span style="float: left;line-height: 30px;">{$vo.title}</span>
                            <span class="x-right">{$vo['timestamp']|date="Y-m-d H:i",###}</span>
                        </a>
                    </td>
                </tr>
                {/volist}
                {else/}
                <tr>
                    <td style="text-align: center;color:red" colspan="2">暂无信息</td>
                </tr>
                {/if}
                </tbody>
            </table>
        </div>
    </fieldset>
</div>
{include file='public/foot'}
